/* 登录页面样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #E9F0FF;
  height: 100vh;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.18);
  border: none;
  outline: none;
  overflow: hidden;
  position: relative;
}

/* 隐藏登录页面的头像模块 */
.login-page .titlebar-avatar {
  display: none;
}

.login-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  width: 524px;
  height: 640px;
  position: absolute;
  right: 18px;
  top: 36.8px;
  z-index: 10;
  box-shadow: 0 10px 20px 0 rgba(0, 32, 88, 0.1);
}

/* 欢迎回来文字 */
.welcome-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 77px;
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 46px;
  color: #000000;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 5px;
}

.logo p {
  font-size: 14px;
  color: #888;
}

#loginForm {
  margin-top: 185px;
}

.form-group {
  margin-bottom: 35px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 15px;
  background: white;
  transition: border-color 0.3s;
  width: 370px;
  height: 51px;
  box-sizing: border-box;
  margin: 0 auto;
}

.input-wrapper:focus-within {
  border-color: #0084F1;
}

.input-icon {
  font-size: 20px;
  color: #999;
  margin-right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.input-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.form-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 4px 0 26px;
  font-size: 14px;
  color: #333;
  min-width: 0;
}

.form-group input::placeholder {
  color: #999;
  opacity: 1;
}

.btn-login {
  width: 370px;
  height: 51px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: #0084F1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 132, 241, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 其他登录方式 */
.login-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  margin-top: 69px;
}

.method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.method-item:hover {
  transform: translateY(-2px);
}

.method-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.method-icon svg {
  width: 100%;
  height: 100%;
}

.method-text {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* 其他登录方式视图 */
.alternative-login-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 0;
}

.login-method-image {
  width: 300px;
  height: auto;
  margin-bottom: 30px;
}

.not-activated-text {
  font-size: 30px;
  color: #000000;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.not-activated-desc {
  font-size: 17px;
  color: #646464;
  margin-bottom: 40px;
  text-align: center;
}

.btn-back {
  width: 370px;
  height: 51px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0084F1;
  background: white;
  border: 2px solid #0084F1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-back:hover {
  background: #0084F1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 132, 241, 0.4);
}

.btn-back:active {
  transform: translateY(0);
}

/* 新白色模块 */
.white-module {
  position: absolute;
  left: 18px;
  top: 36.8px;
  width: 618px;
  height: 640px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 20px 0 rgba(0, 32, 88, 0.1);
  z-index: 1;
}

/* P1图片 */
.p1-image {
  position: absolute;
  left: 36px;
  top: 56px;
  width: 146.4px;
  height: 40px;
  z-index: 2;
}

/* P2图片 */
.p2-image {
  position: absolute;
  left: 21px;
  top: 218px;
  width: 547.2px;
  height: 410.4px;
  z-index: 2;
}

/* 协作效率高文字 */
.collaboration-text {
  position: absolute;
  left: 235px;
  top: 100px;
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 34px;
  font-weight: bold;
  color: #222222;
  z-index: 2;
}

/* Community discussion文字 */
.community-text {
  position: absolute;
  left: 211px;
  top: 160px;
  font-family: 'OPPO Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  color: #D5E0FF;
  z-index: 2;
}

/* P3图片 */
.p3-image {
  position: absolute;
  left: 617px;
  top: 132px;
  width: 59.4px;
  height: 27.6px;
  z-index: 20;
}

/* P4图片 */
.p4-image {
  position: absolute;
  left: 617px;
  top: 310.2px;
  width: 59.4px;
  height: 27.6px;
  z-index: 20;
}

/* P5图片 */
.p5-image {
  position: absolute;
  left: 617px;
  top: 488.4px;
  width: 59.4px;
  height: 27.6px;
  z-index: 20;
}

.login-wrapper {
  position: absolute;
  right: 18px;
  top: 25.8px;
  width: 610px;
  height: 640px;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0;
  z-index: 10;
}

.panel {
  background: #fff;
  border-radius: 16px;
  height: 100%;
  overflow: hidden;
}

.left-panel {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f7aec;
  font-weight: 700;
}

.left-title {
  text-align: center;
  margin-top: 8px;
}

.left-title h1 {
  font-size: 28px;
  color: #1d2433;
  margin-bottom: 6px;
}

.left-title p {
  color: #8aa7d6;
  font-size: 14px;
}

.illustration {
  flex: 1;
  margin-top: 12px;
  background: linear-gradient(180deg,#e9f0ff 0%, #ffffff 100%);
  border: 1px dashed #cfe0ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5991f0;
  font-size: 14px;
}

/* 中间装订脊与挂环 */
.spine {
  position: relative;
  height: 100%;
}

.spine::before,
.spine::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(94,129,255,0.25);
  transform: translateX(-50%);
}

.ring {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 4px solid #5d92ff;
  border-radius: 50%;
  background: #E9F0FF;
  transform: translateX(-50%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08), inset 0 0 0 4px #E9F0FF;
}

.ring.r1 { top: 64px; }
.ring.r2 { top: 50%; transform: translate(-50%, -50%); }
.ring.r3 { bottom: 64px; }

/* 右侧登录表单 */
.right-panel { 
  padding: 48px 64px; 
}

.welcome-title {
  font-size: 32px;
  font-weight: 700;
  color: #1d2433;
  text-align: center;
  margin: 8px 0 28px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-row {
  position: relative;
}

.input-row input {
  width: 100%;
  height: 44px;
  border: 1px solid #d8e2f3;
  border-radius: 8px;
  padding: 0 44px 0 44px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.input-row input::placeholder { 
  color: #9fb1cc; 
}

.input-row input:focus {
  border-color: #2f80ff;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9fb1cc;
  font-size: 16px;
}

.eye-icon { 
  right: 12px; 
  left: auto; 
  cursor: pointer; 
}

.captcha-row { 
  display: grid; 
  grid-template-columns: 1fr 120px 32px; 
  gap: 8px; 
}

.captcha-box {
  height: 44px; 
  border-radius: 8px; 
  background: #eef2ff; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  color:#5b74ff; 
  font-weight:700; 
  letter-spacing:2px;
  user-select: none;
}

.refresh-btn { 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  border:1px solid #d8e2f3; 
  border-radius:8px; 
  cursor:pointer; 
  color:#8aa7d6;
  transition: all 0.3s;
}

.refresh-btn:hover {
  background: #f0f4ff;
  color: #5b74ff;
}

.remember-row { 
  display:flex; 
  align-items:center; 
  gap:8px; 
  color:#6b7a90; 
  font-size:12px; 
  margin-top:4px; 
}

.primary-btn {
  margin-top: 6px;
  height: 44px;
  background: #2f80ff;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.primary-btn:hover {
  background: #1e6fe6;
}

.primary-btn:disabled{ 
  opacity:.6; 
  cursor:not-allowed; 
}

.features { 
  display:flex; 
  justify-content: space-around; 
  margin-top: 28px; 
  color:#5a6b88; 
}

.feature { 
  display:flex; 
  align-items:center; 
  gap:8px; 
  font-size:14px;
  cursor: pointer;
  transition: color 0.3s;
}

.feature:hover {
  color: #2f80ff;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  display: none;
}

.error-message.show {
  display: block;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
